﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.YiDongYuan
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2021-06-09 12:00
    /// 描 述：检测详细信息实体类
    /// </summary>
    [Table("detectioninfo")]
    public class DetectionInfoEntity : BaseCreateEntity
    {
        /// <summary>
        /// 检测报告编号
        /// </summary>
        /// <returns></returns>
        public string BillNo { get; set; }

        /// <summary>
        /// 任务ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? TaskId { get; set; }

        /// <summary>
        /// 现场视频
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? VideoId { get; set; }

        /// <summary>
        /// 检测地址
        /// </summary>
        /// <returns></returns>
        public string Address { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        /// <returns></returns>
        public string Lng { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        /// <returns></returns>
        public string Lat { get; set; }

        /// <summary>
        /// 检测结果ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? ResultDataId { get; set; }

        /// <summary>
        /// 检测结果 0合格 1不合格
        /// </summary>
        /// <returns></returns>
        public int? Result { get; set; }

        /// <summary>
        /// 低排区结果 0合格 1不合格
        /// </summary>
        public int? ResultDPQ { get; set; }

        /// <summary>
        /// 温度
        /// </summary>
        /// <returns></returns>
        public string Tmp { get; set; }

        /// <summary>
        /// 适度
        /// </summary>
        /// <returns></returns>
        public string Hum { get; set; }

        /// <summary>
        /// 风向
        /// </summary>
        /// <returns></returns>
        public string Wind_Dir { get; set; }

        /// <summary>
        /// 风力
        /// </summary>
        /// <returns></returns>
        public string Wind_Sc { get; set; }

        /// <summary>
        /// 海拔
        /// </summary>
        /// <returns></returns>
        public string Altitude { get; set; }

        /// <summary>
        /// 检测开始时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? BeginTime { get; set; }

        /// <summary>
        /// 检测结束时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        /// <returns></returns>
        public string AuditUser { get; set; }

        /// <summary>
        /// 批准人
        /// </summary>
        /// <returns></returns>
        public string PiZhunUser { get; set; }

        /// <summary>
        /// Gps编号
        /// </summary>
        public string GpsNo { get; set; }

        /// <summary>
        /// 执行限值类别
        /// </summary>
        /// <returns></returns>
        public string ZXXZLB { get; set; }

        /// <summary>
        /// 限值
        /// </summary>
        /// <returns></returns>
        public double? AccLimit { get; set; }

        /// <summary>
        /// 烟度计型号
        /// </summary>
        /// <returns></returns>
        public string YDJXH { get; set; }

        /// <summary>
        /// 烟度计编号
        /// </summary>
        /// <returns></returns>
        public string YDJBH { get; set; }

        /// <summary>
        /// 烟度计厂家
        /// </summary>
        /// <returns></returns>
        public string YDJCJ { get; set; }

        /// <summary>
        /// 烟度计检定日期
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? YDJJDRQ { get; set; }

        /// <summary>
        /// 转速仪型号
        /// </summary>
        /// <returns></returns>
        public string ZSYXH { get; set; }

        /// <summary>
        /// 转速仪编号
        /// </summary>
        /// <returns></returns>
        public string ZSYBH { get; set; }

        /// <summary>
        /// 转速仪厂家
        /// </summary>
        /// <returns></returns>
        public string ZSYCJ { get; set; }

        /// <summary>
        /// 转速仪检定日期
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? ZSYJDRQ { get; set; }

        /// <summary>
        /// 系统编号
        /// </summary>
        /// <returns></returns>
        public string XTBH { get; set; }
    }
}
